package javabean;

import java.math.BigDecimal;

public class CartItem {

    private Integer id;
    private Integer cartId;
    private String foodName;
    private Integer quantities;
    private Double cpp;
    private Double total;

    public CartItem(Integer id) {
    }

    public CartItem(Integer id, Integer cartId, String foodName, Integer quantities, Double cpp, Double total) {
        this.id = id;
        this.cartId = cartId;
        this.foodName = foodName;
        this.quantities = quantities;
        this.cpp = cpp;
        this.total = total;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public Integer getQuantities() {
        return quantities;
    }

    public void setQuantities(Integer quantities) {
        this.quantities = quantities;
    }

    public Double getCpp() {
        return cpp;
    }

    public void setCpp(Double cpp) {
        this.cpp = cpp;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "CartItem{" +
                "id=" + id +
                ", cartId=" + cartId +
                ", foodName='" + foodName + '\'' +
                ", quantities=" + quantities +
                ", cpp=" + cpp +
                ", total=" + total +
                '}';
    }
}
